package com.rui.cn.entity.system;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * <p>
 * 用户角色
 * </p>
 *
 * @author zhang123
 * @since 2018-01-15
 */
@TableName("sys_user_role")
public class SysUserRole extends Model<SysUserRole> implements Serializable{

    private static final long serialVersionUID = 1L;

    private Integer userid;
    private Integer roleid;

    public SysUserRole(){}
    public SysUserRole(Integer userid,Integer roleid){
        this.userid=userid;
        this.roleid=roleid;
    }
    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getRoleid() {
        return roleid;
    }

    public void setRoleid(Integer roleid) {
        this.roleid = roleid;
    }

    @Override
    protected Serializable pkVal() {
        return this.userid;
    }

    @Override
    public String toString() {
        return "SysUserRole{" +
        "userid=" + userid +
        ", roleid=" + roleid +
        "}";
    }
}
